package cn.zktr.Personnel.model.service.zhouyongcong;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.zktr.Personnel.model.dao.ouyangpeng.RetWaltDao;
import cn.zktr.Personnel.model.dao.zhouyongcong.AuditDao;
import cn.zktr.Personnel.model.dao.zhouyongcong.PmsActDao;
import cn.zktr.Personnel.model.dao.zhouyongcong.PmsDisDao;
import cn.zktr.Personnel.model.dao.zhouyongcong.PmsEmpDao;
import cn.zktr.Personnel.model.dao.zhouyongcong.PmsStmDao;
import cn.zktr.Personnel.model.pojos.PerAudit;
import cn.zktr.Personnel.model.pojos.PerPmsAct;
import cn.zktr.Personnel.model.pojos.PerPmsDis;
import cn.zktr.Personnel.model.pojos.PerPmsEmp;
import cn.zktr.Personnel.model.pojos.PerPmsStm;
import cn.zktr.Personnel.model.pojos.PerRetWAlt;

@Service
@Transactional(rollbackFor=Exception.class)
public class savePojosService {
	@Autowired
	private AuditDao ad;
	@Autowired
	private PmsStmDao psd;
	@Autowired
	private RetWaltDao rwd;
	@Autowired
	private PmsActDao pad;
	@Autowired
	private PmsEmpDao ped;
	@Autowired
	private PmsDisDao pdd;
	
	
	public void modif_Dis(PerPmsDis ppd) {
		pdd.save(ppd);
	}
	
	public void modif_Emp(PerPmsEmp ppe) {
		ped.save(ppe);
	}
	
	public void modif_Act(PerPmsAct ppa) {
		pad.save(ppa);
	}
	
	public void modif_Stm(PerPmsStm pps) {
		psd.save(pps);
	}
	
	public void modif_Walt(PerRetWAlt prw) {
		rwd.save(prw);
	}
	
	public void modif_Audit(PerAudit pa) {
		ad.save(pa);
	}
}
